<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>选择预约时间</title>
    <%@ include file="/main/main_css.jsp" %>
    <%@ include file="/main/main_js.jsp" %>
</head>
<body>
    <!--  -->
    <div class="all-wrapper">
        <div class="row com-header text-center">
            <span>鹰潭市行政服务中心</span>
        </div>
        <div class="row main-content time-table">
        	<div class="row" >
                <div class="time-count pull-right">
                   <span>剩余</span> <span id="time" class="text-red"></span> <span>秒</span>
                </div>
            </div>
            <div class="col-md-24">
                <h1>确定预约时间</h1>
            </div>
            <span class="txt-md">当前日期</span>
            <span class="now-time">${strObject[0].date }</span>
            <table class="table table-bordered time-table-com" style="border:1px solid #efefef;">
                <tbody>
                    <tr class="first">
                        <td style="width:10%">
                           
                        </td>
                        <td style="width:18%;border-left: none;">
                            <span>${strObject[0].week }</span>
                            <span>${strObject[0].date.substring(5,10) }</span>
                        </td>
                        <td  style="width:18%">
                            <span>${strObject[1].week }</span>
                            <span>${strObject[1].date.substring(5,10) }</span>
                        </td>
                        <td  style="width:18%">
                            <span>${strObject[2].week }</span>
                            <span>${strObject[2].date.substring(5,10) }</span>
                        </td>
                        <td style="width:18%">
                            <span>${strObject[3].week }</span>
                            <span>${strObject[3].date.substring(5,10) }</span>
                        </td>
                        <td style="width:18%">
                            <span>${strObject[4].week }</span>
                            <span>${strObject[4].date.substring(5,10) }</span>
                        </td>
                    </tr>
                    <tr>
                        <td rowspan="3" class="s">上午</td>
                        <td>
                        	<c:if test="${strObject[0].mStrList.size()>=1 }">
                            <div class="bg-blue">
                                <span>
	                                <a href="/smartTerminal/saveJsp?sjd=${strObject[0].mStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[0].date}">
	                                ${strObject[0].mStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[1].mStrList.size()>=1 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[1].mStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[1].date}">
                                	${strObject[1].mStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[2].mStrList.size()>=1 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[2].mStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[2].date}">
                                	${strObject[2].mStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[3].mStrList.size()>=1 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[3].mStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[3].date}">
                                	${strObject[3].mStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[4].mStrList.size()>=1 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[4].mStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[4].date}">
                                	${strObject[4].mStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="bg-blue">
                            	<c:if test="${strObject[0].mStrList.size()>=2 }">
	                            <div class="bg-blue">
	                                <span>
	                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[0].mStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[0].date}">
	                                	${strObject[0].mStrList.get(1) }</a>
	                                </span>
	                            </div>
	                            </c:if>
                            </div>
                        </td>
                        <td>
                            <c:if test="${strObject[1].mStrList.size()>=2 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[1].mStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[1].date}">
                                	${strObject[1].mStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[2].mStrList.size()>=2 }">
                            <div class="bg-blue">
                                <span>
	                                <a href="/smartTerminal/saveJsp?sjd=${strObject[2].mStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[2].date}">
	                                ${strObject[2].mStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[3].mStrList.size()>=2 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[3].mStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[3].date}">
                                	${strObject[3].mStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[4].mStrList.size()>=2 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[4].mStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[4].date}">
                                	${strObject[4].mStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="bg-blue">
                            	<c:if test="${strObject[0].mStrList.size()>=3 }">
	                            <div class="bg-blue">
	                                <span>
	                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[0].mStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[0].date}">
	                                	${strObject[0].mStrList.get(2) }</span>
	                            </div>
	                            </c:if>
                            </div>
                        </td>
                        <td>
                            <c:if test="${strObject[1].mStrList.size()>=3 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[1].mStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[1].date}">
                                	${strObject[1].mStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[2].mStrList.size()>=3 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[2].mStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[2].date}">
                                	${strObject[2].mStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[3].mStrList.size()>=3 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[3].mStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[3].date}">
                                	${strObject[3].mStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[4].mStrList.size()>=3 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[4].mStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[4].date}">
                                	${strObject[4].mStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td rowspan="4" class="x">下午</td>
                        <td>
                            <c:if test="${strObject[0].aStrList.size()>=1 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[0].aStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[0].date}">
                                	${strObject[0].aStrList.get(0) }</a>
                                	</span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[1].aStrList.size()>=1 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[1].aStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[1].date}">
                                	${strObject[1].aStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[2].aStrList.size()>=1 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[2].aStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[2].date}">
                                	${strObject[2].aStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[3].aStrList.size()>=1 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[3].aStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[3].date}">
                                	${strObject[3].aStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[4].aStrList.size()>=1 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[4].aStrList.get(0) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[4].date}">
                                	${strObject[4].aStrList.get(0) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <c:if test="${strObject[0].aStrList.size()>=2 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[0].aStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[0].date}">
                                	${strObject[0].aStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[1].aStrList.size()>=2 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[1].aStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[1].date}">
                                	${strObject[1].aStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[2].aStrList.size()>=2 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[2].aStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[2].date}">
                                	${strObject[2].aStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[3].aStrList.size()>=2 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[3].aStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[3].date}">
                                	${strObject[3].aStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[4].aStrList.size()>=2 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[4].aStrList.get(1) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[4].date}">
                                	${strObject[4].aStrList.get(1) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        	<c:if test="${strObject[0].aStrList.size()>=3 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[0].aStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[0].date}">
                                	${strObject[0].aStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[1].aStrList.size()>=3 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[1].aStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[1].date}">
                                	${strObject[1].aStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[2].aStrList.size()>=3 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[2].aStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[2].date}">
                                	${strObject[2].aStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[3].aStrList.size()>=3 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[3].aStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[3].date}">
                                	${strObject[3].aStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[4].aStrList.size()>=3 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[4].aStrList.get(2) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[4].date}">
                                	${strObject[4].aStrList.get(2) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        <c:if test="${strObject[0].aStrList.size()>=4 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[0].aStrList.get(3) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[0].date}">
                                	${strObject[0].aStrList.get(3) }</a>
                                </span>
                            </div>
                        </td>
                        </c:if>
                        <td>
                            <c:if test="${strObject[1].aStrList.size()>=4 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[1].aStrList.get(3) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[1].date}">
                                	${strObject[1].aStrList.get(3) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                            <c:if test="${strObject[2].aStrList.size()>=4 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[2].aStrList.get(3) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[2].date}">
                                	${strObject[2].aStrList.get(3) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[3].aStrList.size()>=4 }">
                            <div class="bg-green">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[3].aStrList.get(3) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[3].date}">
                                	${strObject[3].aStrList.get(3) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                        <td>
                        	<c:if test="${strObject[4].aStrList.size()>=4 }">
                            <div class="bg-blue">
                                <span>
                                	<a href="/smartTerminal/saveJsp?sjd=${strObject[4].aStrList.get(3) }&SITE_ID=${SITE_ID}&itemid=${itemid}&day=${strObject[4].date}">
                                	${strObject[4].aStrList.get(3) }</a>
                                </span>
                            </div>
                            </c:if>
                        </td>
                    </tr>
                    
                </tbody>
            </table>
        </div>
        <div class="row footer">
            <a class="btn btn-success btn-lg" href="loginOut" role="button"><i class="fa fa-reply"></i>返回首页</a>
            <a class="btn btn-primary btn-lg" href="javascript:history.go(-1)" role="button"><i class="fa fa-arrow-left"></i>上一步</a>
        </div>
    </div>
    <form id="loginOut" action="loginOut"></form>
    <!--  -->
    <script src="static/plugins/html5shiv.min.js" id="html5shiv"></script>
    <script src="static/plugins/respond.min.js" id="respond"></script>
    <script src="static/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="static/plugins/bootstrap/bootstrap.min.js" type="text/javascript"></script>
    <script src="static/plugins/bootstrap/bootstrapValidator.js" type="text/javascript"></script> 
    <script src="static/js/common.js" type="text/javascript"></script>
    <script type="text/javascript">
	  //加入倒计时
		var count =  119;
		function countdown(){
			$("#time").text(count);
			if(count > 0){
				window.setTimeout("countdown()",1000);
				count --;
			}else{
				$("#loginOut").submit();
			}
		}
		countdown();    
    </script>
</body>
</html>